package action;

import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.ServletActionContext;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public class ClearCart extends ActionSupport {

	public String clearCart(){
		HttpSession session = ServletActionContext.getRequest().getSession();
		session.removeAttribute("cart");
		return SUCCESS;
	}
}
